x86: use maddr_to_page and maddr_to_mfn to avoid open-coded >> PAGE_SHIFT
authorJulien Grall <julien.grall@linaro.org>
Mon, 9 Oct 2017 11:24:50 +0000 (13:24 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 9 Oct 2017 11:24:50 +0000 (13:24 +0200)
commit5d4cf4f3500972d4f3a1832df806e8845fb8bd84
tree4b6c154094b04b1c0709648550fe1cfbd771e9ef
parent4cb6b5799ff7569af406faec3b1225e554c6f47c
x86: use maddr_to_page and maddr_to_mfn to avoid open-coded >> PAGE_SHIFT

The constructions _mfn(... > PAGE_SHIFT) and mfn_to_page(... >> PAGE_SHIFT)
could respectively be replaced by maddr_to_mfn(...) and
maddr_to_page(...).

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/debug.c
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/mm/shadow/multi.c
xen/common/kimage.c